<% couponlist.forEach(function(item){ %>
	<div class="item-wrap">
	      <div class="ticket-item<% if (item.effective==0 && item.discard==1) { %> ineffective <% }else if(["FREEZE","CONSUMED","DELETE","UNAVAILABLE"].indexOf(item.card_status)>-1&&parseInt(item.end_time)*1E3>new Date().getTime()){ %> freeze<% }else if(parseInt(item.end_time)*1E3<new Date().getTime()){ %> expired<% } %><% if (item.type=='GIFT') { %> coin<% } %>">
			  <div class="ticket-type">
				  <div class="ticket-price">
					  <% if (item.type=='CASH') { %>
						<strong><%- String(item.youhui).replace(/(\.\d+)/,'<sub>$1</sub>') %></strong><sub>元</sub>
					  <% }else if(item.type=='DISCOUNT'){ %>
							<strong><%= item.youhui %></strong><sub>折</sub>
					  <% }else if(item.type=='GIFT'){ %>
							 <i class="icon-exchange"></i>
					  <% } %> 
				  </div>
				  <div class="ticket-name">
					  <% if (item.type=='CASH') { %>
						代金券
					  <% }else if(item.type=='DISCOUNT'){ %>
						折扣券
					  <% }else if(item.type=='GIFT'){ %>					  
						 兑换券
					  <% } %> 
				  </div>
			  </div> 
			  <div class="ticket-info">
				<div class="figure"></div>
			     <div  class="ticket-title"><%= item.title %></div>
			     <div  class="ticket-validity">有效期至<%= item.endtime %></div>
				 <div class="timemark"></div> 
			  </div>		
		  </div>  
	</div>
<% }) %> 


